package pile.pay.mapper;

import org.apache.ibatis.annotations.Param;
import pile.pay.entity.OccupyOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 占位订单 Mapper 接口
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-29
 */
@Repository
public interface OccupyOrderMapper extends BaseMapper<OccupyOrder> {

    /**
     * 根据我们自己生成的订单号查询占位订单
     * @param rechargeOrderNo
     * @return
     */
    List<OccupyOrder> selectByPaymentOrderNumber(@Param("rechargeOrderNo") String rechargeOrderNo);
}
